﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XNA_TD
{
    public class Box : GroundUnit
    {
        static Matrix[] boneTransforms = null;

        public Box(int lvl)
            : base("Gegner/Box", map.getStart(lvl, 2))
        {
            if (boneTransforms == null)
            {
                boneTransforms = new Matrix[model.Bones.Count];
            }
            speed = 0.01f;
            yawSpeed = 0.015f;

            lvlInfo = new LvlInfo("", 5, 0, 0, 10 + lvl, 20, GegnerTyp.Nichts);
            ResetHealth();
        }

        protected override Matrix[] CalculateAbsoluteBoneTransforms()
        {
            model.Root.Transform = root * rotation * Matrix.CreateTranslation(position);
            model.CopyAbsoluteBoneTransformsTo(boneTransforms);

            return boneTransforms;
        }

        protected override void Shot()
        {
        }
    }
}
